package com.itetchologyandenglish.home.mapper;
import com.itetchologyandenglish.home.enetity.Auth;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 */
@Repository
public interface ResourceMapper  {
   List<Auth> list();
   int addAuthRole(@Param("roleAuthList") List<Map<String,Integer>> roleAuthList);
   Auth getAuthById(Integer id);
   List<Integer> getAuthByRoleId(Integer id);
   int updateAuth(@Param("auth") Auth auth);
   int removeAuth(Integer id);
   int delRoleAuth(Integer roleId);
    int addAuth(@Param("auth") Auth auth);
}
